<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::util::Rnd_gen_uniform_range_mt&lt; range_t &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1util.html">util</a></li><li class="navelem"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html">Rnd_gen_uniform_range_mt</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::util::Rnd_gen_uniform_range_mt&lt; range_t &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Identical to <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a> but safe for concurrent RNG given a single object.  
 <a href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="random_8hpp_source.html">random.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for flow::util::Rnd_gen_uniform_range_mt&lt; range_t &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1util_1_1Rnd__gen__uniform__range__mt__inherit__graph.svg" width="307" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for flow::util::Rnd_gen_uniform_range_mt&lt; range_t &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1util_1_1Rnd__gen__uniform__range__mt__coll__graph.svg" width="711" height="204"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae9a26e2e155c9f24bcef57bd9404eca3"><td class="memItemLeft" align="right" valign="top">range_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html#ae9a26e2e155c9f24bcef57bd9404eca3">operator()</a> ()</td></tr>
<tr class="memdesc:ae9a26e2e155c9f24bcef57bd9404eca3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next pseudo-random number in <code>[min, max]</code> provided in constructor.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html#ae9a26e2e155c9f24bcef57bd9404eca3">More...</a><br /></td></tr>
<tr class="separator:ae9a26e2e155c9f24bcef57bd9404eca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:add632fccb79ec2178b9d2250ae0fef54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceflow_1_1util.html#add6ade273326f27eaf9bfd170a909626">flow::util::Mutex_non_recursive</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html#add632fccb79ec2178b9d2250ae0fef54">m_mutex</a></td></tr>
<tr class="memdesc:add632fccb79ec2178b9d2250ae0fef54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mutex that protects against concurrency-based corruption.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html#add632fccb79ec2178b9d2250ae0fef54">More...</a><br /></td></tr>
<tr class="separator:add632fccb79ec2178b9d2250ae0fef54"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base')"><img src="closed.png" alt="-"/>&#160;Private Types inherited from <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html">flow::util::Rnd_gen_uniform_range_base</a></td></tr>
<tr class="memitem:a519fc83fd1c52a82618cd85f3a089668 inherit pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668">Random_generator</a> = boost::random::mt19937</td></tr>
<tr class="memdesc:a519fc83fd1c52a82618cd85f3a089668 inherit pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The random generator engine; it is public for the reason explained in Usability section of the <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a> doc header.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668">More...</a><br /></td></tr>
<tr class="separator:a519fc83fd1c52a82618cd85f3a089668 inherit pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range')"><img src="closed.png" alt="-"/>&#160;Private Member Functions inherited from <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">flow::util::Rnd_gen_uniform_range&lt; range_t &gt;</a></td></tr>
<tr class="memitem:a8c6bb1d53f7e1aea58d21091ba37e9ae inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a8c6bb1d53f7e1aea58d21091ba37e9ae">Rnd_gen_uniform_range</a> (range_t min=0, range_t max=std::numeric_limits&lt; range_t &gt;::max())</td></tr>
<tr class="memdesc:a8c6bb1d53f7e1aea58d21091ba37e9ae inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begins the random number generation sequence.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a8c6bb1d53f7e1aea58d21091ba37e9ae">More...</a><br /></td></tr>
<tr class="separator:a8c6bb1d53f7e1aea58d21091ba37e9ae inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7470837dde6dbb38691b4bb7ecf93472 inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a7470837dde6dbb38691b4bb7ecf93472">Rnd_gen_uniform_range</a> (uint32_t seed, range_t min, range_t max)</td></tr>
<tr class="memdesc:a7470837dde6dbb38691b4bb7ecf93472 inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begins the random number generation sequence.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a7470837dde6dbb38691b4bb7ecf93472">More...</a><br /></td></tr>
<tr class="separator:a7470837dde6dbb38691b4bb7ecf93472 inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579080b18b6c95d49039a5098afe707b inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="memItemLeft" align="right" valign="top">range_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a579080b18b6c95d49039a5098afe707b">operator()</a> ()</td></tr>
<tr class="memdesc:a579080b18b6c95d49039a5098afe707b inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next pseudo-random number in <code>[min, max]</code> provided in constructor.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a579080b18b6c95d49039a5098afe707b">More...</a><br /></td></tr>
<tr class="separator:a579080b18b6c95d49039a5098afe707b inherit pub_methods_classflow_1_1util_1_1Rnd__gen__uniform__range"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename range_t&gt;<br />
class flow::util::Rnd_gen_uniform_range_mt&lt; range_t &gt;</div><p >Identical to <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a> but safe for concurrent RNG given a single object. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">range_t</td><td>Same as for <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00156">156</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ae9a26e2e155c9f24bcef57bd9404eca3" name="ae9a26e2e155c9f24bcef57bd9404eca3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9a26e2e155c9f24bcef57bd9404eca3">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">range_t <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html">flow::util::Rnd_gen_uniform_range_mt</a>&lt; range_t &gt;::operator()</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the next pseudo-random number in <code>[min, max]</code> provided in constructor. </p>
<p >Thread-safe for a given <code>this</code>.</p>
<dl class="section return"><dt>Returns</dt><dd>Ditto. </dd></dl>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00206">206</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="add632fccb79ec2178b9d2250ae0fef54" name="add632fccb79ec2178b9d2250ae0fef54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add632fccb79ec2178b9d2250ae0fef54">&#9670;&nbsp;</a></span>m_mutex</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceflow_1_1util.html#add6ade273326f27eaf9bfd170a909626">flow::util::Mutex_non_recursive</a> <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html">flow::util::Rnd_gen_uniform_range_mt</a>&lt; range_t &gt;::m_mutex</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Mutex that protects against concurrency-based corruption. </p>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00179">179</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>util/<a class="el" href="random_8hpp_source.html">random.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:36 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
